package com.hishop.payment.domain;

import java.io.IOException;
import java.util.Properties;

/**
 * @author
 * @version 创建时间：2017年10月12日 下午5:57:43
 */
public final class Constant {
	private static Properties prop = new Properties();
	static {
		try {
			prop.load(Constant.class.getResourceAsStream("/config/api/conf-api.properties"));// 类加载器
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	/************************************ 支付宝app支付接口 *******************************************************/
	public static final String ALIPAY_URL = prop.getProperty("alipay.url");
	public static final String ALIPAY_APP_ID = prop.getProperty("alipay.app.id");
	public static final String ALIPAY_APP_PRIVATE_KEY = prop.getProperty("alipay.app.private.key");
	public static final String FORMAT = prop.getProperty("format");
	public static final String CHARSET = prop.getProperty("charset");
	public static final String ALIPAY_PUBLIC_KEY = prop.getProperty("alipay.public.key");
	public static final String SIGN_TYPE = prop.getProperty("sign.type");
	/**
	 * 本地内网穿透测试，上线时更改地址
	 */
	public static final String ALIPAY_CALLBACK_URL = "http://coder.hk1.mofasuidao.cn"+ "/educloud/api/order/alipay_callback";
	/** 订单未支付 */
	public static final int ORDER_UN_PAID = 0;
	/** 订单已取消 */
	public static final int ORDER_CANCLE = 10;
	/** 订单已支付 */
	public static final int ORDER_PAID = 20;
	/** 订单完成 */
	public static final int ORDER_COMPLETE = 30;
	/** 订单关闭 */
	public static final int ORDER_CLOSE = 40;
	/** 支付成功 */
	public static final String TRADE_STATUS_TRADE_SUCCESS = "TRADE_SUCCESS";
}
